package com.example.demo.huawei;

import java.util.*;

/**
 * 机场航班调度
 */
public class OD57 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        String[] split = s.split(",");

        List<String> list = new ArrayList<>();
        Collections.addAll(list, split);

        list.sort(Comparator.naturalOrder());

        //        System.out.println(list);
        StringJoiner sj = new StringJoiner(",");
        list.forEach(sj::add);
        System.out.println(sj);
    }
}
